﻿@model CardInChina.Bussiness.Frontend.Models.GamesByIndex
@if(Model != null) 
{
    <div class="hot_game_area_item">
        @if (Model.Games.Count() == 0)
        {
                    <h3 class="H3_item1">
            @Model.IndexName</h3> 
        }
        else
        {
        <h3 class="H3_item">
            @Model.IndexName</h3>
        }
        <div>
            @if (Model.Games != null)
            {
                if (Model.Games.Count() == 0)
                {
                    <ul><li><a href=""></a></li></ul> 
                }
                else
                {
                    for (int k = 0; k < Model.Games.Count(); k++)
                    {
                    <ul>
                        @for (int l = k; l < Model.Games.Count() && l < k + 5; l++, k++)
                        {
                            <li>·
                                @Html.ActionLink(Model.Games.ElementAt(k).GameName,
                                    "Index",
                                    "Game",
                                    new { gameKey = Model.Games.ElementAt(k).GameKey },
                                    new { title = Model.Games.ElementAt(k).GameName })
                                @if(Model.Games.ElementAt(k).IsHot == 1)
                                {
                                    <i class="mr ui-icons"></i>
                                }
                            </li>

                        }
                    </ul>
                    }
                }
            }
        </div>
    </div>
}